package java101;

public class Fibanacci {

public static void main (String[]args){ 

            int[] series = new int[30];
            series[0] = 0;
            series[1] = 1;
            for(int i=2; i < 30; i++){ 
            	series[i] = series[i-1] + series[i-2]; 
            	System.out.println(String.format(i <= 2 ? "0\n1\n%d " : "%d ", series[i]));
            	}
                               
            }
    }